package com.mdd;

import com.mdd.config.SpringConfiguration;
import com.mdd.service.BookService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class App {
    public static void main(String[] args) {
        ApplicationContext ctx = new AnnotationConfigApplicationContext(SpringConfiguration.class);
        BookService a =ctx.getBean(BookService.class);
        a.save();
    }
}
